package com.cst.intercepterdemo.controller;

import com.cst.intercepterdemo.annotation.AccessControl;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("api")
public class AppController {

	@AccessControl
	@RequestMapping(value="test",method = RequestMethod.GET)
	public String index(){
		return "index";
	}

	@AccessControl
	@RequestMapping(value="test1",method = RequestMethod.GET)
	public String index1(){
		return "index";
	}
}
